package java_012_zuoye05;

import java.util.HashMap;

public class java04 {
	public static void main(String[] args) {
		HashMap<Character,Character> map = new HashMap<Character,Character>();
		String str = "YUANzhi1987";
		char[] ch = str.toCharArray();
		for(char c : ch){
			if(c>='A'&&c<='Z'){
				char value = (char)((int)c+33);
				map.put(c, value);
			}
			else if(c<='c'&&c>='a'){
				map.put(c, '2');
			}
			else if(c<='f'&&c>='d'){
				map.put(c,'3');
			}
			else if(c<='i'&&c>='g'){
				map.put(c, '4');
			}
			else if(c<='l'&&c>='j'){
				map.put(c, '5');
			}
			else if(c<='o'&&c>='m'){
				map.put(c, '6');
			}
			else if(c<='s'&&c>='p'){
				map.put(c, '7');
			}
			else if(c<='v'&&c>='t'){
				map.put(c, '8');
			}
			else if(c<='z'&&c>='w'){
				map.put(c, '9');
			}else{
				map.put(c,c);
			}	
			System.out.print(map.get(c));
		}
	}
}
